<table width="100%" border="0" cellpadding="0" cellspacing="0" class="guide">
	<tr>
		<td>
			<span style="float: left;">后台管理中心&nbsp;&raquo;&nbsp;<?php echo $this->type == 0 ? 'IOS' : '安卓';?>圈子头条</span>
			<span style="float: right;">
			    <a href="./?controller=circle&action=headnewsdetail&type=<?php echo $this->type;?>">+ 添加</a>
				<a href="javascript:history.go(-1);">&lt;- 返回</a>
			</span>
		</td>
	</tr>
</table>

<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableborder">
	<tr class="header">
		<td colspan="6"><?php echo $this->type == 0 ? 'IOS' : '安卓';?>圈子头条</td>
	</tr>
	<tr class="category" align="center">
		<td width="10%">ID</td>
		<td width="20%">描述</td>
		<td width="20%">连接</td>
		<td width="10%">排序</td>
		<td width="20%">添加时间</td>
		<td width="20%">操作</td>
	</tr>
<?php
foreach ($this->data as $row)
{
	echo <<<EOF
	<tr>
		<td class="altbg1" align="center">{$row['id']}</td>
		<td class="altbg2" align="center">{$row['title']}</td>
		<td class="altbg1" align="center">{$row['link']}</td>
		<td class="altbg2" align="center">{$row['rank']}</td>
		<td class="altbg1" align="center">{$row['create_date']}</td>
		<td class="altbg2" align="center">
		    <a href="./?controller=circle&action=headnewsdetail&id={$row['id']}">编辑</a><br />
		    <a href="./?controller=circle&action=headnewsdelete&id={$row['id']}">删除</a>
		</td>
	</tr>
EOF;
}
?>
	<tr class="category">
		<td align="center" colspan="6">
			<?php echo $this->paging; ?>
		</td>
	</tr>
</table>
